home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / cbm / 2197 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: charnel.ecst.csuchico.edu!usenet
  2. From: Phil Hoff <phoff@ecst.csuchico.edu>
  3. Newsgroups: comp.sys.cbm
  4. Subject: Re: Want to read/record temp with c64
  5. Date: 9 Feb 1996 16:28:27 GMT
  6. Organization: California State University, Chico
  7. Message-ID: <4ffsnb$jcm@charnel.ecst.csuchico.edu>
  8. References: <4e75jl$je4@news.csus.edu> <4ff413$jeb@onramp.arc.nasa.gov>
  9. NNTP-Posting-Host: hoff.ecst.csuchico.edu
  10.  
  11.  
  12. > Two software appraoches are possible: table lookup and algebraic calculation.
  13.   Algebraic calculation requires you create a formula
  14. > to determine the reading and does require a few samples in a table to start,
  15. > possibly a graph.
  16. If you go the algebraic calculation route, you will most likely find 
  17. that the resistance vs temperature will follow the relationship:
  18.         R=a*exp(b/T)
  19. a and b are the constants you must evaluate (preferably by using the 
  20. method of least squares on a few data points), R is the resistance 
  21. and T is the KELVIN temperature, which is the Centigrade temp+273.
  22.  
  23. However, if you want to spring for just a few bucks, you can get an
  24. integrated circuit temp sensor that will not only give you a voltage 
  25. or current that varies linearly with temperature, but is numerically
  26. EQUAL to temperature. The current ones are preferred if you want to
  27. be able to do remote sensing, because the voltage drop in long wires 
  28. will not introduce errors. These devices are made by a number of IC
  29. manufacturers, with the primary ones probably being Analog Devices,
  30. Maxim and National.
  31.  
  32.